package com.jielin.handling.entity.policeplatform;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author chenzhang
 * @date 2019/5/7 - 19:45
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Organization {
    private String id;
    private String organizationName;
    private String province;
    private String superiorId;
    private String handleUnitCode;
    private String site;
    private String phone;
    private String isDelete;
    private Integer sort;
    private Date time;
    private String comment;
    private Date createDate;
    private Date modifyDate;
    private Integer criminalCase;//刑事
    private Integer politicalCase;//政治
    private Integer civilCase;//民事
    private String  criminalCaseRation;
    private String  politicalCaseRation;
    private String  civilCaseRation;
    private String unitCode;
    private Integer allCase;
    // 自定义属性:是否有下级单位0不是1是
    private Boolean isHaveChildUnit;

    private int criminalNum;

    private String type;//案件细类别分类

    private int typeNum;//案件细类别数量

    private String allCaseSortRation;//细类别案件在所有案件中的占比

    private String allSortRation;//细类别在所有细类别中的占比

    private String sortName;//细类别名称

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startDate;//开始时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date  endDate;//结束时间

    private String sumCriminalCase;//刑事统计
    private String sumCivilCase;//民事统计
    private String sumPoliticalCase;//政治统计
}
